using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Arch.Aspects;

namespace Arch.Samples.Model
{
    [Order("Name")]
    [DataContract(IsReference = true)]
    [SecurityAccess(ReadAccess = Access.Authentified, WriteRoles = "Admin")]
    public partial class GlobalCategory : Category
    {
        [DataMember]
        [Display(AutoGenerateField = false)]
        //[AssociationAttribute("SubCategory_GlobalCategory", "Id", "GlobalCategoryId")]
        public virtual ICollection<SubCategory> SubCategories { get; set; }

        [DataMember]
        [Display(AutoGenerateField = false)]
        //[AssociationAttribute("Todo_GlobalCategory", "Id", "GlobalCategoryId")]
        public virtual ICollection<Todo> Todoes { get; set; }
    }
}
